//
//  Waypoint.h
//  CommandCenter08
//
//  Created by Matt Roman on 7/1/08.
//  Copyright 2008 University of Oklahoma. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "definitions.h"

@interface Waypoint : NSObject {
	int		state;
	float	distance;
	float	traveled;
	LatLonCoord coordinates;
	Point3D	point;
	int		uuid;
	int		science;
	NSDate	*time;
	NSString	*notes;
}

- (id)initWithPoint:(Point3D)p andID:(int)i;
- (id)initWithPoint:(Point3D)p andID:(int)i dist:(float)d;
- (id)initWithLatLon:(LatLonCoord)llc andID:(int)i;
-(void)setPoint:(Point3D)p;
-(Point3D)point;
- (LatLonCoord)coordinates;
- (void)setLatLonCoordinates:(LatLonCoord)ll;
-(double)Xcord;
-(void)setXcord:(double)x;
-(double)Ycord;
-(void)setYcord:(double)y;
-(void)setState:(int)s;
-(int)state;
-(NSImage *)stateIcon;
-(void)setUuid:(int)i;
-(int)uuid;
-(void)setScience:(int)type;
-(int)science;
-(NSString *)scienceString;
-(void)setDistance:(float)d;
-(float)distance;
-(void)setTraveled:(float)d;
-(float)traveled;
-(void)setWPTime:(NSDate *)t;
-(NSDate*)time;
-(NSString*)timeHMS;
- (NSString*)notes;
- (void)setNotes:(NSString *)note;
@end
